package roborally;

import be.kuleuven.cs.som.annotate.Basic;

/**
 * A class for signaling illegal moves for robots in the roborally game.
 * 
 * @version	1.0
 * @author 	Pieter Robberechts
 * @author 	Jeroen Sanders
 */

public class IllegalMoveException extends RuntimeException {

	/**
	 * Initialize this new illegal move exception with a message.
	 * 
	 * @param  value
	 *         The value for this new illegal denominator exception.
	 * @post   The value of this new illegal denominator exception is equal
	 *         to the given value.
	 *       | new.getValue() == value
	 */
	public IllegalMoveException(String message) {
		this.message = message;
	}
	
	/**
	 * Return the message registered for this illegal move exception.
	 */
	@Basic
	public String getMessage() {
		return this.message;
	}

	/**
	 * Variable registering the message involved in this illegal move
	 * exception.
	 */
	private final String message;

	private static final long serialVersionUID = -2749949608477874702L;

}
